/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.coo_education.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 中外合作办学Entity
 * @author hang
 * @version 2017-01-15
 */
public class TbCooEducation extends DataEntity<TbCooEducation> {
	
	private static final long serialVersionUID = 1L;
	private String itemName;		// 机构/项目名称
	private String approvalNumber;		// 批准编号
	private String validity;		// 批准书有效期
	private String foreignSchool;		// 外方院校
	private String educationKind;		// 办学层次和类别
	private String foreignCertificate;		// 是否颁发外方证书
	private String assessResult;		// 评估结果
	private String remark;		// 备注
	private String material;		// 附件证明材料
	private Date createTime;		// 创建时间
	private Date updateTime;		// 更新时间
	
	public TbCooEducation() {
		super();
	}

	public TbCooEducation(String id){
		super(id);
	}

	@Length(min=0, max=50, message="机构/项目名称长度必须介于 0 和 50 之间")
	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}
	
	@Length(min=0, max=100, message="批准编号长度必须介于 0 和 100 之间")
	public String getApprovalNumber() {
		return approvalNumber;
	}

	public void setApprovalNumber(String approvalNumber) {
		this.approvalNumber = approvalNumber;
	}
	
	@Length(min=0, max=100, message="批准书有效期长度必须介于 0 和 100 之间")
	public String getValidity() {
		return validity;
	}

	public void setValidity(String validity) {
		this.validity = validity;
	}
	
	@Length(min=0, max=100, message="外方院校长度必须介于 0 和 100 之间")
	public String getForeignSchool() {
		return foreignSchool;
	}

	public void setForeignSchool(String foreignSchool) {
		this.foreignSchool = foreignSchool;
	}
	
	@Length(min=0, max=100, message="办学层次和类别长度必须介于 0 和 100 之间")
	public String getEducationKind() {
		return educationKind;
	}

	public void setEducationKind(String educationKind) {
		this.educationKind = educationKind;
	}
	
	@Length(min=0, max=10, message="是否颁发外方证书长度必须介于 0 和 10 之间")
	public String getForeignCertificate() {
		return foreignCertificate;
	}

	public void setForeignCertificate(String foreignCertificate) {
		this.foreignCertificate = foreignCertificate;
	}
	
	@Length(min=0, max=50, message="评估结果长度必须介于 0 和 50 之间")
	public String getAssessResult() {
		return assessResult;
	}

	public void setAssessResult(String assessResult) {
		this.assessResult = assessResult;
	}
	
	@Length(min=0, max=200, message="备注长度必须介于 0 和 200 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@Length(min=0, max=200, message="附件证明材料长度必须介于 0 和 200 之间")
	public String getMaterial() {
		return material;
	}

	public void setMaterial(String material) {
		this.material = material;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
}